//
//  CreateJobOwnerInfomationVC.swift
//  GreenDeal
//
//  Created by Moennig Q on 2/3/2023.
//

import UIKit

class CreateJobOwnerInfomationVC: BaseViewController {
    var editFlag: Bool = false//创建和Review的编辑共用此功能
    let customView = EditOwnerInfomationView(topBGImageName: "jobdetail_navi_property_owner_icon")
    override func viewDidLoad() {
        super.viewDidLoad()
        self.initUI()
        self.setData()
    }
    //
    private func initUI(){
        self.view = self.customView
        self.customView.setTitleInfo(R.string.localizable.ownerDetails())
        self.customView.continueBtn.setTitle(R.string.localizable.continue(), for: UIControl.State.normal)
    }
    //MARK: - 设置数据
    private func setData(){
        self.customView.setData(CreateJobModelHelper.shared.createJobViewModel.propertyOwner)
    }
    //MARK: - 返回到上一级之前，要保存修改过的内容
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.navigationController?.setNavigationBarHidden(true, animated: false)
    }
}
